package com.zcsy.manage.model.system;


import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.zcsy.manage.model.base.CellHouse;
import com.zcsy.manage.model.base.CellInfo;

/**
 * 登陆账户实体类
 * 
 * @author tanghan
 */

public class User implements Serializable {

    /**
     * 用户序列化<br>
     */
    private static final long serialVersionUID = -5975619522538223298L;

    /**
     * 用户Id
     */
    private String id;

    /**
     * 登陆名称
     */
    private String loginname;

    /**
     * 姓名
     */
    private String username;
    
    /**
     * 用户昵称
     */
    private String nickname;

    /**
     * 登陆密码
     */
    private String pwd;

    /**
     * 创建时间
     */
    private Date createdatetime;

    /**
     * 最后修改时间
     */
    private Date modifydatetime;

    /**
     * 用户状态1:可用，0：不可用
     */
    private Integer state;

    /**
     * 性别 1男。0女
     */
    private Integer sex;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;
    
    /**
     * 头像
     */
    private String logo;
    
    /**
     * 上次登录时间
     */
    private Date lastLoginTime;
    
    /**
     * 登录次数
     */
    private Integer loginTimes;

    /**
     * 所属部门Id
     */
    private String orgId;

    /**
     * 职位岗位<br>
     */
    private String post;

    /**
     * 用户角色<br>
     */
    private String roleId;
    
    /**
     * 用户类型 1运维，2物业，3商家，4配送，5业主
     */
    private Integer userType;
    
    /**
     * 积分值
     */
    private Integer integral;
    
    /**
     * 物业/配送公司ID
     */
    private String companyId;
    
    /**
     * 运营/物业/配送公司
     */
    private String companyName;

    /**
     * 用户在指定小区有权限的第一个菜单<br>
     */
    private Menu menu;
    
    /**
     * 用户在指定小区的权限集合
     */
    private List<Menu> cellMenus;
    
    /**
     * 用户在指定小区的按钮权限集合
     */
    private String cellBtns;
    
    /**
     * 是否被选中
     */
    private boolean check;
    
    /**
     * 与该用户关联的角色id<br>
     */
    List<String> roleList;
    
    /**
     * 该用户在该小区的角色id集合<br>
     */
    List<String> roleCellList;
    
    /**
     * 该用户所有的小区集合
     */
    List<CellInfo> cellInfos;
    
    /**
     * 用户当前小区
     */
    CellInfo currentCell;
    
    /**
     * 用户头像
     */
    private String headimg;
    
    private List<CellHouse> houses;
    
    /**
     * 用户的角色
     */
    private String roles;
 
	public String getHeadimg() {
		return headimg;
	}

	public void setHeadimg(String headimg) {
		this.headimg = headimg;
	}
    
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public Date getCreatedatetime() {
        return createdatetime;
    }

    public void setCreatedatetime(Date createdatetime) {
        this.createdatetime = createdatetime;
    }

    public Date getModifydatetime() {
        return modifydatetime;
    }

    public void setModifydatetime(Date modifydatetime) {
        this.modifydatetime = modifydatetime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public Menu getMenu() {
        return menu;
    }

    public void setMenu(Menu menu) {
        this.menu = menu;
    }

	public boolean isCheck() {
		return check;
	}

	public void setCheck(boolean check) {
		this.check = check;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public Integer getLoginTimes() {
		return loginTimes;
	}

	public void setLoginTimes(Integer loginTimes) {
		this.loginTimes = loginTimes;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public Integer getIntegral() {
		return integral;
	}

	public void setIntegral(Integer integral) {
		this.integral = integral;
	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}
	
    public List<String> getRoleList() {
		return roleList;
	}

	public void setRoleList(List<String> roleList) {
		this.roleList = roleList;
	}

	public List<String> getRoleCellList() {
		return roleCellList;
	}

	public void setRoleCellList(List<String> roleCellList) {
		this.roleCellList = roleCellList;
	}

	public List<CellInfo> getCellInfos() {
		return cellInfos;
	}

	public void setCellInfos(List<CellInfo> cellInfos) {
		this.cellInfos = cellInfos;
	}

	public CellInfo getCurrentCell() {
		return currentCell;
	}

	public void setCurrentCell(CellInfo currentCell) {
		this.currentCell = currentCell;
	}

	public List<Menu> getCellMenus() {
		return cellMenus;
	}

	public void setCellMenus(List<Menu> cellMenus) {
		this.cellMenus = cellMenus;
	}

	public List<CellHouse> getHouses() {
		return houses;
	}

	public void setHouses(List<CellHouse> houses) {
		this.houses = houses;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getRoles() {
		return roles;
	}

	public void setRoles(String roles) {
		this.roles = roles;
	}

	public String getCellBtns() {
		return cellBtns;
	}

	public void setCellBtns(String cellBtns) {
		this.cellBtns = cellBtns;
	}
	
	
}
